package com.lb.sssq.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.lb.sssq.dao.TemplateDao;
import com.lb.sssq.domain.Template;
import com.lb.sssq.service.TemplateService;


@Service

public class TemplateServiceImp implements TemplateService{
	@Autowired
	private TemplateDao templateDao;
	/**
	 * 根据模板通知类型和模板KEY 得到模板 
	 * @param temp
	 * @return
	 */
	public Template getTemplateByKeyAndType(Template temp){
		return this.templateDao.getTemplateByKeyAndType(temp);
	}
}
